
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>加入联盟商圈</title>
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
		<script src="__PUBLIC__/static/layui/layui.js"></script>
	</head>

	<body>
		<form class="update_form " action="">
			<div class="layui-form-item">
				<label class="layui-form-label">客户量</label>
				<div class="layui-input-block update_shurk">
					<input type="text" name="lid" value="{$lid}" style="display: none;">
					<input type="text" name="customer_volume" required lay-verify="required" placeholder="输入本店的客户量" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item update_btnbox">
				<div class="layui-input-block">
					<button class="layui-btn" onclick="tijiao()" type="button" lay-filter="formDemo">提交,等联盟主审核</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</body>

</html>
<script type="text/javascript" src="__PUBLIC__/static/js/citydata.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/js/cityPicker-1.1.4.js"></script>
<script type="text/javascript">
layui.use('form', function() {
	var form = layui.form;
});
//提交表单
function tijiao(){
	 $.ajax({
         	type:"post",
            url:"{:url('activet/union_join')}",
            data: $('.update_form').serialize(),//表单数据
            success:function(data){
                if(data.code==200){
                	layer.msg('成功', {
					  icon: 1,
					  time: 1500 //2秒关闭（如果不配置，默认是3秒）
					}, function(){
						window.parent.location.reload();
						var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
				       	parent.layer.close(index); 
					});
                }else{
                	layer.msg('失败！');//保存成功提示
                }
            },error:function(data){
            	var a = data;
            }
    });
	
} 
</script>